package com.dcruitment.dcruitmentindex.controller;

import com.dcruitment.dcruitmentindex.entity.ResultEntity;
import com.dcruitment.dcruitmentindex.service.ClassService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: dc-ruitment
 * @Package: com.dcruitment.dcruitmentindex.controller
 * @ClassName: ClassController
 * @Author: lfh
 * @Description:
 * @Date: 2020/3/26 13:37
 * @Version: 1.0
 */
@RestController
@CrossOrigin
public class ClassController {
    @Autowired
    private ClassService classService;

    @RequestMapping("getClassList")
    public ResultEntity getClassList(){
        return ResultEntity.ok(classService.getClassList());
    }
}
